Skip to content

fix: persist user authentication using SQLite database#695

Open
Sakshi-Sharma08 wants to merge 2 commits into
Charushi06:mainfrom
Sakshi-Sharma08:main
Open

fix: persist user authentication using SQLite database#695
Sakshi-Sharma08 wants to merge 2 commits into
Charushi06:mainfrom
Sakshi-Sharma08:main

Conversation

@Sakshi-Sharma08
Copy link
Copy Markdown

Problem

Users were stored in-memory which resets every time
the server restarts. This caused login to fail on live site.

Fix

  • Added users table to SQLite database in database.js
  • Updated signup and login routes in server.js to use SQLite

Fixes the login bug on the live site

@Sakshi-Sharma08
Copy link
Copy Markdown
Author

Hi @Charushi06 👋

I opened this PR yesterday to fix the user authentication persistence issue by migrating from in-memory store to SQLite database.

Both commits are verified and there are no merge conflicts. Could you please review this when you get a chance?

Looking forward to your feedback! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant